package com.jblv.frame.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title PageResult
 * @projectName jblv-frame
 * @packageName com.jblv.common.dto
 * @description
 * @date Create at 2020/4/21 22:11
 * @since jdk1.8
 */
@ApiModel(value="分页REST返回类",description="分页REST返回类")
public class PageResult<T>
{
    @ApiModelProperty(example = "1")
    int pageSize;
    @ApiModelProperty(example = "1")
    int curPage;
    @ApiModelProperty(example = "10")
    int total;
    List<T> list;

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(final int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurPage() {
        return this.curPage;
    }

    public void setCurPage(final int curPage) {
        this.curPage = curPage;
    }

    public List<T> getList() {
        return this.list;
    }

    public void setList(final List<T> list) {
        this.list = list;
    }

    public int getTotal() {
        return this.total;
    }

    public void setTotal(final int total) {
        this.total = total;
    }
}
